Microsoft DirectX 8.1 (C++)

ICAPolicies.Remove

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The Remove method removes a policy from the collection.

Syntax

objCAPolicies.Remove(Index)

Parameters

  Index

VARIANT that specifies the policy to retrieve. This parameter can be a zero-based index into the collection, an ICAPolicy object already in the collection, or a string containing the CLSID of the policy.

Error Codes

If the method fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

No return value.

Remarks

Before removing the denial, this method retrieves the policy�s ICAPolicy.OkToRemove property. If the value is FALSE, the Remove method fails.

See Also